package com.gupao.pattern.factory.simple;

public class SimpleFactoryPatternTest {
    public static void main(String[] args) {
        PhoneFactory phoneFactory = new SimpleFactory();
        AbstractPhone iphone = phoneFactory.getPhone("iphone");
        iphone.start();
        iphone.call();
        iphone.shutdown();
        System.out.println("--------------------------");
        AbstractPhone vivo = phoneFactory.getPhone("vivo");
        vivo.start();
        vivo.call();
        vivo.shutdown();

    }
}
